* {
    margin: 0px;
    padding: 0px;
}
img:hover {
    transform: rotate(360deg);
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}